package com.market.service.wx.impl;

import com.market.bean.MarketGoodsExample;
import com.market.mapper.MarketGoodsMapper;
import com.market.service.wx.WxGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName: WxGoodsService
 * @description:
 * @author: March
 * @version: 1.0
 * @datetime: 2023/1/3 12:32
 */
@Service
public class WxGoodsServiceImpl implements WxGoodsService {

    @Autowired
    MarketGoodsMapper marketGoodsMapper;

    @Override
    public long count() {
        MarketGoodsExample marketGoodsExample = new MarketGoodsExample();
        marketGoodsExample.createCriteria().andDeletedEqualTo(false);
        long count = marketGoodsMapper.countByExample(marketGoodsExample);
        return count;
    }
}
